package com.example.DTO;

import jakarta.validation.constraints.NotBlank;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class CommentDTO {
    private Integer id;
    @NotBlank(message = "评论内容不能为空")
    private String content;
    private Integer parentId;  // 父评论ID（0表示一级评论）
    private Integer articleId;
    private Integer replyUserId; // 被回复用户ID（可选字段）:ml-citation{ref="4" data="citationList"}
    private Integer userId;
    private LocalDateTime createTime;
    private Integer pregnant;//是否具有子评论
    private String nickname;
    private String user_pic;//用户头像
}

